//
//  ShipListItem.h
//  SpaceStorm
//
//  Created by 祥 雍 on 13-6-17.
//  Copyright (c) 2013年 __MyCompanyName__. All rights reserved.
//

#import "cocos2d.h"
#import "ToggleSprite.h"
#import "SlowBlood.h"
#import "SlowBloodStretch.h"



@interface ShipListItem : CCNode
{
    ToggleSprite* _bg;
    CCSprite* _icon;
    CCLabelTTF* _name;
    SlowBloodStretch* _shieldBlood;
    SlowBloodStretch* _armouredBlood;
    SlowBloodStretch* _hpBlood;
    int _index;
}

+(id) itemWithIcon:(NSString*)iconFrameName 
              name:(NSString*)name 
         maxShield:(int)maxShield 
       maxArmoured:(int)maxArmoured 
             maxHp:(int)maxHp
             index:(int)index;

-(id) initWithIcon:(NSString*)iconFrameName 
              name:(NSString*)name 
         maxShield:(int)maxShield 
       maxArmoured:(int)maxArmoured
             maxHp:(int)maxHp
             index:(int)index;

-(void) selectItem:(BOOL)isSelect;

@property (readwrite) int index; 
@end
